package com.itheima.thread.Demo8_阻塞队列;

import java.util.concurrent.ArrayBlockingQueue;

public class Test {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> bq = new ArrayBlockingQueue<String>(1);
        Foodie f = new Foodie(bq);
        Cooker c = new Cooker(bq);

        f.start();
        c.start();
    }
}
